package com.infindo.frame.util;
 
public class EnumConstant {

    /**
     * 服务器端返回的消息
     * @author colky
     *
     */
    public enum MessageCode{
        //connection timeout or not login
        
        
        OK(1000), //Execute success
        //NO_EXISTS(1001), //object don't exists
        MISS_PARAMETER(1002),
        ERR_CT(1701), //ERR_CT -- connection timeout
        ERR_SYSTEM(1702) , //ERR_SYSTEM -- system error

        

        //EC2 -- username or password input error when login, EC4(2004),  no use now
        //EC4 -- The user had login!
        //EC5 -- The user  not exists!
        //EC6 -- This user has disabled!
        //EC7 -- No permission to login the system

        //EC1 -- duplicate username when register
        //EC3 -- Error old password !
        EC1(2001), EC2(2002), EC3(2003), EC5(2005), EC6(2006), EC7(2007),
        
        
        //UP1 -- invalid photo type or photo is null
        //UP2 -- photo don't exists
        UP1(3101),
        UP2(3102),
        
        

        ;
        
        
        
        private int code;
        //private String msg;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        MessageCode(int code) {
            this.code = code;
            //this.msg = msg;
        }


    };
    
    public enum PushCode{
        //1001:Operate Success
        OK(1001),
        FAIL(1002),;

        //connection timeout or not login
        //system error
        //ERR_CT(1701),ERR_SYSTEM(1702) , 


        //EC0-- Lastest Data!
        //EC1-- Parameters not found!
        //EC2-- The App don't exists!


        //EC0(1100),EC1(1101),EC2(1102),EC3(1103),EC4(1104),EC5(1105),EC6(1106),;


        private int code;
        //private String msg;

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        PushCode(int code) {
            this.code = code;
            //this.msg = msg;
        }


    };
    
    public enum PushPlatform {
        IPHONE,
        ANDROID
    };

    public enum Permission {
        Auth_Teacher,
        Auth_Relative
    }
    
    
    public enum UserStatus {
        Free,
        Busy
    }
    
}
